-- GENERATED SPELL FOR [Prairie Stalker] --


function spell0_2959(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2959', 568, 1)
end

function spell1_2959(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2959', 0, 1)
end

function spell2_2959(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_2959', 20000, 1)
end

function spell3_2959(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2959', 0, 1)
end

function spell4_2959(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2959', 0, 1)
end

function Sorts_2959(pUnit, Event)
local choix_sorts_2959 = math.random(0, 4)
if choix_sorts_2959 == 0 then
pUnit:RegisterEvent('spell0_2959', 1, 1)
end
if choix_sorts_2959 == 1 then
pUnit:RegisterEvent('spell1_2959', 1, 1)
end
if choix_sorts_2959 == 2 then
pUnit:RegisterEvent('spell2_2959', 1, 1)
end
if choix_sorts_2959 == 3 then
pUnit:RegisterEvent('spell3_2959', 1, 1)
end
if choix_sorts_2959 == 4 then
pUnit:RegisterEvent('spell4_2959', 1, 1)
end
end

function mob2959_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2959', math.random(1500, 3000), 1)
end

function mob2959_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2959_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2959_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2959, 1, 'mob2959_Action')
RegisterUnitEvent(2959, 2, 'mob2959_Leave')
RegisterUnitEvent(2959, 3, 'mob2959_Kill')
RegisterUnitEvent(2959, 4, 'mob2959_Die')
